HAL OSPI state and control functions migration ¶
This section provides information about the HAL OSPI state and control functions migration.
HAL OSPI abort ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_OSPI_Abort(OSPI_HandleTypeDef *hospi);
|
HAL_XSPI_Abort(hal_xspi_handle_t *hxspi, uint32_t timeout_ms);
|
HAL OSPI abort IT ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_OSPI_Abort_IT(OSPI_HandleTypeDef *hospi);
|
HAL_XSPI_Abort_IT(hal_xspi_handle_t *hxspi);
|
HAL OSPI set FIFO threshold ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_OSPI_SetFifoThreshold(OSPI_HandleTypeDef *hospi,
uint32_t Threshold);
|
HAL_XSPI_SetFifoThreshold(hal_xspi_handle_t *hxspi,
uint32_t threshold);
|
HAL OSPI get FIFO threshold ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_OSPI_GetFifoThreshold(const OSPI_HandleTypeDef *hospi);
|
HAL_XSPI_GetFifoThreshold(const hal_xspi_handle_t *hxspi);
|
HAL OSPI set timeout ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_OSPI_SetTimeout(OSPI_HandleTypeDef *hospi, uint32_t Timeout);
|
Removed from HAL2, the timeout is set directly as function parameter.
|
HAL OSPI get error ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_OSPI_GetError(const OSPI_HandleTypeDef *hospi);
|
HAL_XSPI_GetLastErrorCodes(const hal_xspi_handle_t *hxspi);
|
Related concept: Revised and optimized HAL error management
HAL OSPI get state ¶
|
HAL1 |
HAL2 |
|---|---|
HAL_OSPI_GetState(const OSPI_HandleTypeDef *hospi);
|
HAL_XSPI_GetState(const hal_xspi_handle_t *hxspi);
|
Related concept: Revised and optimized HAL state machine